home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 July
/
CMCD0704.ISO
/
Software
/
Freeware
/
Comunicatii
/
htttrack
/
httrack-3.32-2.exe
/
{app}
/
src_win
/
WinHTTrack
/
WizLinks.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
2003-12-29
|
3KB
|
109 lines
// WizLinks.cpp : implementation file
//
#include "stdafx.h"
#include "Shell.h"
#include "WizLinks.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
extern HICON httrack_icon;
/////////////////////////////////////////////////////////////////////////////
// WizLinks dialog
WizLinks::WizLinks(CWnd* pParent /*=NULL*/)
: CDialog(WizLinks::IDD, pParent)
{
//{{AFX_DATA_INIT(WizLinks)
m_lnk = -1;
m_url = _T("");
//}}AFX_DATA_INIT
}
void WizLinks::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(WizLinks)
DDX_Radio(pDX, IDC_ch1, m_lnk);
DDX_Text(pDX, IDC_URL, m_url);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(WizLinks, CDialog)
//{{AFX_MSG_MAP(WizLinks)
ON_BN_CLICKED(IDskipall, Onskipall)
ON_WM_DESTROY()
ON_WM_TIMER()
//}}AFX_MSG_MAP
ON_COMMAND(ID_HELP, OnHelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// WizLinks message handlers
void WizLinks::Onskipall()
{
// TODO: Add your control notification handler code here
EndDialog(IDskipall);
}
BOOL WizLinks::OnInitDialog()
{
CDialog::OnInitDialog();
SetIcon(httrack_icon,false);
SetIcon(httrack_icon,true);
tm=SetTimer(WM_TIMER,1000,NULL);
SetForegroundWindow(); // yop en premier plan!
// Patcher l'interface pour les Franτais ;-)
if (LANG_T(-1)) { // Patcher en franτais
//SetDlgItemTextCP(this, ,"");
SetWindowTextCP(this, LANG(LANG_M1)); // "Un lien a ΘtΘ dΘtectΘ");
SetDlgItemTextCP(this, IDC_STATIC_rule,LANG(LANG_M2)); // "Choisir une rΦgle:");
SetDlgItemTextCP(this, IDC_ch1,LANG(LANG_M3)); // "Ignorer ce lien");
SetDlgItemTextCP(this, IDC_ch2,LANG(LANG_M4)); // "Ignorer rΘpertoire");
SetDlgItemTextCP(this, IDC_ch3,LANG(LANG_M5)); // "Ignorer domaine");
SetDlgItemTextCP(this, IDC_ch4,LANG(LANG_M6)); // "Prendre cette page uniquement");
SetDlgItemTextCP(this, IDC_ch5,LANG(LANG_M7)); // "Miroir du site");
SetDlgItemTextCP(this, IDC_ch6,LANG(LANG_M8)); // "Miroir du domaine entier");
SetDlgItemTextCP(this, IDskipall,LANG(LANG_M9)); // "Ignorer tout");
}
return TRUE; // return TRUE unless you set the focus to a control
// EXCEPTION: OCX Property Pages should return FALSE
}
void WizLinks::OnDestroy()
{
if (tm!=0) {
KillTimer(tm);
tm=-1;
}
CDialog::OnDestroy();
}
void WizLinks::OnTimer(UINT nIDEvent)
{
wflag=!wflag;
FlashWindow(wflag);
CDialog::OnTimer(nIDEvent);
}
int WizLinks::DoModal()
{
// TODO: Add your specialized code here and/or call the base class
return CDialog::DoModal();
}